package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 文章类型
 * </p>
 *
 * @author stylefeng123
 * @since 2018-06-25
 */
@TableName("cms_article_type")
public class CmsArticleType extends Model<CmsArticleType> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private String title;
    private Integer sort;
    private Integer parentId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    private Integer createUserid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getCreateUserid() {
        return createUserid;
    }

    public void setCreateUserid(Integer createUserid) {
        this.createUserid = createUserid;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CmsArticleType{" +
        "id=" + id +
        ", title=" + title +
        ", sort=" + sort +
        ", parentId=" + parentId +
        ", createDate=" + createDate +
        ", createUserid=" + createUserid +
        "}";
    }
}
